package com.etoak.web.sys_role.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Value;

import java.util.Date;

/**
 * @Author by 孙有泽
 * @Date 2025/2/15 11:31
 * @Description
 */
@Data
@TableName("role")

public class SysRole {
    //主键自增
    @TableId(type = IdType.AUTO)
    private String id;
    private String name;
    private String description;
    private String type;

    @TableField(fill = FieldFill.INSERT,value ="createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE,value ="updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @TableLogic(value = "0",delval = "1")
    private Integer deleted;



}
